package com.example.myapplication.markwon

import io.noties.markwon.MarkwonConfiguration
import io.noties.markwon.RenderProps
import io.noties.markwon.SpanFactory
import io.noties.markwon.core.CoreProps

/**
 * Create by Tanzhenxing on 2025/6/30.
 * Description:
 */
class HeadingSpanFactory : SpanFactory {
    override fun getSpans(configuration: MarkwonConfiguration, props: RenderProps): Any {
        return HeadingSpan(configuration.theme(), CoreProps.HEADING_LEVEL.require(props))
    }
}